<!-- 
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>记记账</title>
[if lt IE 9]>
  <script src="libs/html5shiv.min.js"></script>
  <script src="libs/respond.min.js"></script>
  <![endif]
<script type="text/javascript" src="libs/handlebars.min.js"></script>
<script src="libs/jquery-1.12.1.min.js"></script>
<link href="libs/bootstrap-3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="libs/bootstrap-3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
	<form action="index.html" method="post">
		<div class="container" align="center">
			<div class="page-header">
				<h2 class="text-center">
					<strong>记记账</strong>
				</h2>
			</div>
			<font size="5px" color="#3192DB"> 收入OR支出： <label>支出<input
					type="radio" name=sz value="money_out" id="t"></label> <label>收入<input
					type="radio" name=sz value="money_in" id="t"></label>
				<p>
					金 额：<input name="money" id="money">
				<p>
					地 点：<input name="place" id="place">
				<p>
					类 别：<input name="kind" id="kind">
				<P>
					备 注：<input name="remark" id="remark">
				<p>
					时 间：<input name="date_time" type="date" id="date_time"><br>
					<input type="button" id="save1" value="保存"></font>
		</div>
	</form>
</body>
<script type="text/javascript">
	$(function() {
		$('#save1').click(function() {
			console.log($('#t').val());
			//console.log($('#tt').val());
			//return;
			$.post('sz.action', {
				t : $('#t').val(),
				//	tt:$('#tt').val(),
				money_in : $('#money').val(),
				money_out : $('#money').val(),
				kind : $('#kind').val(),
				place : $('#place').val(),
				remark : $('#remark').val(),
				date_time : $('#date_time').val(),
				user_id : $('#user_id').val()
			}, function(res, status) {
				if ('SR' == res) {
					alert('添加收入成功');
				} else if ('ZC' == res) {
					alert('添加支出成功');
				}
			});
		});
	});
</script>
</html> 
-->